package com.ys.ylideas.strategy;

public enum TableNameStrategy {
	BYDATE("通过日期计算表名", 1), BYID("通过ID计算表名", 2);  
    // 成员变量  
    private String name;  
    private int index;  
    // 构造方法  
    private TableNameStrategy(String name, int index) {  
        this.name = name;  
        this.index = index;  
    }  
    //覆盖方法  
    @Override  
    public String toString() {  
        return this.index+"_"+this.name;  
    }
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
    
    
}
